//
//  NSString+EmString.m
//  可可旅行
//
//  Created by dllo on 15/10/6.
//  Copyright © 2015年 直到世界的尽头. All rights reserved.
//

#import "NSString+EmString.h"

@implementation NSString (EmString)

+(NSString *)getStringByEmString:(NSString *)string
{
    NSInteger i = 4;
    NSMutableString *str = [NSMutableString string];
    do {
        [str appendString:[NSString stringWithFormat:@"%C", [string characterAtIndex:i++]]];
    } while ([string characterAtIndex:i] != '<');
    return str;
}

@end
